from typing import List


def euclid_dis(s1: List, s2: List) -> int:
    '''
    求解两个样本的欧氏距离
    输入 样本1 样本2
    返回 样本的欧式距离
    '''
    return sum([(s1[i]-s2[i])**2 for i in range(len(s1))])**(1/2)

def man_dis(s1: List, s2: List) -> int:
    '''
    求解两个样本的曼哈顿距离
    输入 样本1 样本2
    返回 样本的曼哈顿距离
    '''
    return sum( [abs(s1[i]-s2[i]) for i in range(len(s1))])

# for debug 
# s1 = [2,-5]
# s2 = [1,2]
# print(euclid_dis(s1,s2))
# print(man_dis(s1,s2))